﻿@model BattleThis.Core.User

@{
    ViewBag.Title = "Edit";
}

<h2>Edit User</h2>

<p>
You are new at battlethis, please enter your player name, this is shown to other playern.
Your mail address will not be published on any other site.
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>User</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink( "Back", BattleThis.Controllers.LobbyController.IndexAction,
                                BattleThis.Controllers.LobbyController.Info.ControllerName )
</div>

